package com.tianshi.yingxue.service;

import com.tianshi.yingxue.dto.TwoPageParam;
import com.tianshi.yingxue.entity.Category;
import com.tianshi.yingxue.page.PageParam;
import com.tianshi.yingxue.page.PageResult;
import com.tianshi.yingxue.page.Result;

import java.util.List;
import java.util.Map;

public interface CategoryService {
    PageResult<Category> queryOnePage(PageParam pageParam);
    PageResult<Category> queryTwoPage(TwoPageParam twoPageParam);
    Category queryById(Integer id);
    List<Category> queryByLevels(Integer levels);
    Result<Void> add(Category category);
    void update(Category category);
    void delete(Integer id);
}
